/**
 * 音频路径
 */
export class AudioPath {
    /**
     * 音乐根目录
     */
    private static MUSIC_DIR = "Audio/Music/";
    /**
     * 音效跟目录
     */
    private static SOUND_DIR = "Audio/Sound/";

    /**
     * 获取音乐路径
     *
     * @param name 音乐名称
     */
    private static getMusic(name: string): string {
        return this.MUSIC_DIR + name;
    }

    /**
     * 获取音效路径
     *
     * @param name 音效名称
     */
    private static getSound(name: string): string {
        return this.SOUND_DIR + name;
    }

    /**
     * 音乐：背景音乐
     */
    public static get backgroundMusic(): string {
        return this.getMusic('bgm');
    }

    /**
     * 音效：点击
     */
    public static get clickSound(): string {
        return this.getSound('click');
    }

    /**
     * 音效：子弹1
     */
    public static get bullet1Sound(): string {
        return this.getSound('bullet1');
    }

    /**
     * 音效：子弹2
     */
    public static get bullet2Sound(): string {
        return this.getSound('bullet2');
    }

    /**
     * 音效：玩家死亡
     */
    public static get playerDiedSound(): string {
        return this.getSound('player_died');
    }

    /**
     * 音效：敌人死亡
     */
    public static get enemyDiedSound(): string {
        return this.getSound('enemy_died');
    }
}